<?php 
include_once("../../../configuracion/config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/plantillaAdmin.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Nueva Ciudad</title>
<!-- InstanceEndEditable -->
<link rel="stylesheet" type="text/css" href="../../css/estilo.css"/>
<link rel="SHORTCUT ICON" href="../../../logo/unc.ico"/>
<!-- InstanceBeginEditable name="head" -->
<link rel="stylesheet" type="text/css" href="../../css/DatePicker.css"/>
<script type="text/javascript" src="../../js/mootools.js"></script>
<script type="text/javascript" src="../../js/iToolkit.js"></script>
<script type="text/javascript" src="../../js/DatePicker.js"></script>
<script type="text/javascript" src="../../js/fValidator-full.js"></script>
<script language="JavaScript" type="text/javascript">
window.addEvent('load', PageLoad);
		function PageLoad()	{
			
			//new iToolkit.ComboEnlazado(hijo, padre, servicioDeDatos);
			new iToolkit.ComboEnlazado("idCiudad", "idPais", "ajax.form/CiudadPorPais.php");
			
		}
</script>
<script>

window.addEvent('domready', function(){
			 var myValidator = new fValidator("fciudad");
			 $('fciudad').addEvent('submit', function(e) {
				new Event(e).stop();
			
				if(myValidator.result){ 
				
						var log = $('log_res_ajax').empty().addClass('ajax-loading');
					
						this.send({
							update: log,
							onComplete: function() {
								log.removeClass('ajax-loading');
							}
						});
				}
			});
		}); 



</script>



<!-- InstanceEndEditable -->

</head>

<body>

<?php include('../estructura/encabezado.php');?>
<div class="menuIzqquierdo">

<?php include('../menu/menuIzq.html');?>

</div>
<div class="content"><!-- InstanceBeginEditable name="EditRegion3" -->
<div id="ajax_bar">
<h2>Ciudad</h2>

	<form id="fciudad"    action="ajax.form/ciudad_add.php" method="get" name="fciudad">
	<?php include_once("int_pais.php"); ?>
	<?php include_once("int_ciudad.php"); ?>
	 <input id="guardar" class="right fValidator-form" type="submit" value="Nueva ciudad" name="guardar"/>	

</form>
</div>
<div id="info">

		<div id="log_res_ajax"><!-- spanner --><?php 

//include_once("../../info/ciudad.php");
?></div>
</div>

<!-- InstanceEndEditable --></div>
<?php include('../estructura/pie.php');?>
</body>
<!-- InstanceEnd --></html>
 